<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/21
 * Time: 23:33
 */
namespace phpfuntions\mp_com;
class myphp_com
{
    /**
     *com_create_guid 函数：产生一个全局唯一标识符(GUID)　
     * @access public
     * @return
     */
    public static function com_create_guid () {
        return com_create_guid( );

    }

    /**
     *com_event_sink 函数：在COM对象与PHP对象之间建立连接
     * @access public
     * @return
     */
    public static function com_event_sink ($comobject, $sinkobject, $sinkinterface) {
        return com_event_sink($comobject, $sinkobject, $sinkinterface );

    }

    /**
     *com_get_active_object 函数：返回已经运行的一个COM类的实例的句柄
     * @access public
     * @return
     */
    public static function com_get_active_object ( $progid, $code_page ) {
        return com_get_active_object(  $progid, $code_page );

    }



    /**
     *com_load_typelib 函数：装载一个Typelib
     * @access public
     * @return
     */
    public static function com_load_typelib ($typelib_name, $case_insensitive = true ) {
        return com_load_typelib($typelib_name, $case_insensitive  );

    }

    /**
     *com_message_pump 函数：停止运行指定的时间，等待有信息到来
     * @access public
     * @return
     */
    public static function com_message_pump ($timeoutms = 0) {
        return com_message_pump( $timeoutms );

    }

    /**
     *com_print_typeinfo 函数：输出一个定义为进程接口的PHP类　
     * @access public
     * @return
     */
    public static function com_print_typeinfo ($comobject, $dispinterface, $wantsink = false) {
        return com_print_typeinfo($comobject, $dispinterface, $wantsink  );

    }
}